<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fi" lang="fi"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      metal:define-macro="master">
<head>
  <title tal:content="ORDERBOOK_TITLE">Ruokapiiri</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link rel="stylesheet" tal:attributes="href string:${base}../ruokapiiri.css" type="text/css" media="screen"/>
  <metal:head define-slot="head"><!-- Ruokapiirin JavaScript --></metal:head>
  <style type="text/css" media="print">
  .visualNoPrint{ display: none; }
  </style>
</head>

<body>
<div id="page">

<div id="header">
  <h1 tal:content="ORDERBOOK_TITLE">Ruokapiiri</h1>
</div>

<div id="main">
  <div id="ruokapiiri">
    <form id="ruokapiiri-logout" tal:condition="auth/isAuthorized|nothing" method="post">
      <input class="ruokapiiri-hidden" type="hidden" name="action" value="logout" />
      <input class="ruokapiiri-submit" align="right" type="submit" value="Kirjaudu ulos" />
    </form>

    <h2 metal:define-slot="heading">Sivun nimi</h2>

    <p metal:define-slot="message" tal:omit-tag="">
      <tal:comment tal:replace="nothing">Palveluviesti  tarvittaessa.</tal:comment>
    </p>

    <div metal:define-slot="main" tal:omit-tag=""><p>Varsinainen sisältö</p></div>
  </div>

  <ul id="navigation" class="visualNoPrint" tal:define="action view|string:form">
  <li tal:attributes="class php: action == 'orderform' ? 'active' : NULL">
    <a tal:attributes="href string:${base}?view=orderform">Tilauslomake</a>
  </li>
  <li tal:condition="auth/isAuthorized|nothing"
    tal:attributes="class php: action == 'orderbook' ? 'active' : NULL">
    <a tal:attributes="href string:${base}?view=orderbook">Tilauskirja</a>
  </li>
  <li tal:condition="auth/isAuthorized|nothing"
      tal:attributes="class php: action == 'catalog' ? 'active' : NULL">
    <a tal:attributes="href string:${base}?view=catalog">Tuoteluettelo</a>
  </li>
  <li tal:condition="auth/isAuthorized|nothing"
      tal:attributes="class php: action == 'limits' ? 'active' : NULL">
    <a tal:attributes="href string:${base}?view=limits">Tilausrajoitukset</a>
  </li>
  <li tal:attributes="class php: action == 'ingredients' ? 'active' : NULL">
    <a tal:attributes="href string:${base}?view=ingredients">Tuoteselosteet</a>
  </li>
  <li tal:condition="auth/isAuthorized|nothing"
        tal:attributes="class php: action == 'statistics' ? 'active' : NULL">
    <a tal:attributes="href string:${base}?view=statistics">Tilastot</a>
  </li>
  <li tal:condition="not:auth/isAuthorized|nothing" tal:replace="nothing">
    <a tal:attributes="href string:${base}hallinta">Ylläpito</a>
  </li>
  </ul>
</div>

</div>
</body>
</html>
